package com.fastCms.business.mall.pojo.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fastCms.business.frame.config.BigDecimalValueFilter;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 杭州人参大健康管理有限公司 版权所有 Copyright 2019<br>
 *
 * @Description: <br>
 * @Project: healthPro <br>
 * @CreateDate: Created in 2019年6月4日 下午4:10:24 <br>
 * @Author: < a href="jiahui.zhao@healthpro.vip">jiahui.zhao</ a>
 */
@ApiModel(value = "AppProductDetailVO对象", description = "商品详情")
@Data
public class AppProductDetailVO {

    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "组织编号")
    private String organizeCode;

    @ApiModelProperty(value = "产品名称")
    private String productName;

    @ApiModelProperty(value = "品牌id")
    private String brandId;

    @ApiModelProperty(value = "子标题")
    private String subTitle;

    @ApiModelProperty(value = "产品类型（实物商品,服务商品）")
    private String productType;

    @ApiModelProperty(value = "商品首图")
    private String mainImageUrl;

    @ApiModelProperty(value = "商品视频url")
    private String productVideo;

    @ApiModelProperty(value = "产品单价")
    private BigDecimal unitPrice;

    @ApiModelProperty(value = "产品原价", example = "100")
    private BigDecimal originalPrice;

    @ApiModelProperty(value = "sku最低价")
    @JsonSerialize(using = BigDecimalValueFilter.class)
    private BigDecimal skuMinPrice;

    @ApiModelProperty(value = "sku最高价")
    @JsonSerialize(using = BigDecimalValueFilter.class)
    private BigDecimal skuMaxPrice;

    @ApiModelProperty(value = "富文本id")
    private String explainId;

    @ApiModelProperty(value = "剩余总库存")
    private Integer remainStock;

    @ApiModelProperty(value = "总库存")
    private Integer totalStock;

    @ApiModelProperty(value = "微商城产品状态(状态枚举） 1:上架 2：下架")
    private Integer storeStatus;

    @ApiModelProperty(value = "状态 1-正常 0-失效")
    private Integer status;

    @ApiModelProperty(value = "是否有sku  1：是 0：否")
    private Integer hasSku;

    @ApiModelProperty(value = "商城销售总数")
    private Integer storeSaleCount;

    @ApiModelProperty(value = "是否支持普通会员卡折扣(1支持2.不支持）")
    private Integer canMemberCard;

    @ApiModelProperty(value = "是否支持付费会员卡折扣(1支持2.不支持）")
    private Integer canMemberDiscard;

    @ApiModelProperty(value = "预约时间模式:1-默认时间模式2-自定义时间模式")
    private Integer reserveTimeMode;

    @ApiModelProperty(value = "医院[1,2]")
    private String hospitalIds;

    @ApiModelProperty(value = "提货门店IDs=[6,10]")
    private String storeIds;

    @ApiModelProperty(value = "快递是否包邮(1-包邮2-不包邮)")
    private Integer expressFree;

    @ApiModelProperty(value = "快递支持门店自提")
    private Boolean canPick;

    @ApiModelProperty(value = "商品重量（kg）")
    private Double weight;

    @ApiModelProperty(value = "配送模式（1-自发 2-代发）")
    private Integer deliverMode;

    @ApiModelProperty(value = "商品预售状态;1-开启2-关闭")
    private Integer bookingSaleStatus;

    @ApiModelProperty(value = "商品预售时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date bookingSaleTime;

    @ApiModelProperty(value = "商品图片")
    private List<String> productImages;

    @ApiModelProperty(value = "商品属性")
    private List<AppProductAttributeVO> productAttributes;

    @ApiModelProperty(value = "商品标签列表")
    private List<String> productTags;

    @ApiModelProperty(value = "商品分类ID列表")
    private List<String> classIds;

}
